import DJRequest from './request'

const req = new DJRequest({
  baseURL: 'https://locally.uieee.com/',
  timeout: 1000,
  interceptors: {
    requestInterceptor: config => {
      console.log('请求成功的拦截')
      return config
    },
    requestInterceptorCatch: error => {
      console.log('请求失败的拦截')
      return error
    },
    responseInterceptor: config => {
      console.log('响应成功的拦截')
      return config
    },
    responseInterceptorCatch: error => {
      console.log('响应失败的拦截')
      return error
    }
  }
})
export default req
